//
//  OpenGLWidget.h
//  Editor
//
//  Created by Jeppe Nielsen on 11/17/14.
//  Copyright (c) 2014 Jeppe Nielsen. All rights reserved.
//
#pragma once

#include <QtOpenGL/QGLWidget>
#include <QtCore/QtCore>
#include <QtOpenGL/QGLFunctions>

class OpenGLWidget : public QGLWidget, protected QGLFunctions
{
    Q_OBJECT        // must include this if you use Qt signals/slots

public:
    OpenGLWidget(QWidget *parent);

    void Render();
protected:

    void initializeGL();
    void resizeGL(int w, int h);
    void paintGL();
    void makeCurrent();
    
};